package com.youlu.campus.base.sign;

import com.youlu.campus.base.base.ConstantsEnum;
import com.youlu.campus.base.base.EntityBase;
import lombok.Data;
import lombok.ToString;
import org.springframework.data.mongodb.core.index.Indexed;

import java.util.List;

/**
 * @author zgz
 * @date 2020/11/16 16:26
 */
@Data
@ToString
public class SignPlanBase extends EntityBase {

    /**
     * 打卡名称
     */
    @Indexed
    protected String name;

    /**
     * 一句话介绍
     */
    protected String introduce;

    /**
     * 排序
     */
    protected Integer sort = 1;

    /**
     * 状态
     */
    protected String status = ConstantsEnum.Status.DISABLED.getCode();

    /**
     * 参与人数
     */
    protected Integer joinCount = 0;

    /**
     * 打卡总天数
     */
    protected Integer totalDay = 0;

    /**
     * 打卡明细
     */
    protected List<SignPlanDetail> details;
}
